package com.scuec.tourismwebsite.service;

import com.github.pagehelper.PageInfo;
import com.scuec.tourismwebsite.entity.Post;
import com.scuec.tourismwebsite.vo.OrderUserBoutique;
import com.scuec.tourismwebsite.vo.UserPost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PostService {
    List<UserPost> findPostByNickname(String nickname);
    Integer insertPost(Post post);
    List<Object[]> findPostByUserId(Integer user_id);
    List<UserPost> findPostAll();
    Integer deletePostById(Integer post_id);
    UserPost findPostById(Integer post_id);
    List<UserPost> findUserPostByCategory(String category);
    Integer updatePostCount(@Param("post_id") Integer post_id, @Param("likes_count") Integer likes_count, @Param("comments_count") Integer comments_count, @Param("collect_counts") Integer collect_counts);
    PageInfo<UserPost> findUserPostPages(Integer pageNum, Integer pageSize);
    PageInfo<UserPost> findUserPostPage(String nickname,Integer pageNum, Integer pageSize);
}

